package com.parking.order.consumer;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 测试用消费者类
 * */
@Component
public class TestConsumer {
    /**
     * 测试消费者
     * 参数: message 测试消息
     * */
    @RabbitHandler
    @RabbitListener(queuesToDeclare = {@Queue(value="testRabbitMQ")})
    public void testRabbitMQ(String message) {
        System.out.println(message);
    }
}
